import request from '@/utils/request';
import { AxiosPromise } from 'axios';
// import { RouteRecordRaw } from 'vue-router';

// 获取路由
export const getRouters = (params:any): AxiosPromise<any> => {
  return request({
    url: '/system/menu/getRouters',
    method: 'get',
    params
  })
}

export const getMobileRouters = (params:any): AxiosPromise<any> => {
  return request({
    url: '/mobile/getRouters',
    method: 'get',
    params
  })
}
